package com.kaifamiao.association.entity;

public class IdentityCard {

    private Integer id ;
    private String cardNo ;

    // 维护从 IdentityCard 到 Citizen 之间的 一对一 关联关系
    private Citizen citizen ; // 表示当前身份证对应的公民

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Citizen getCitizen() {
        return citizen;
    }

    public void setCitizen(Citizen citizen) {
        this.citizen = citizen;
    }
}
